package com.dao.purchase;

import com.model.purchase.PurchaseNeed;

import java.util.List;
import java.util.Map;

/**
 * @description purchase_need
 * @author chenjun
 * @date 2022-02-25
 */
public interface NeedMapper {

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int insert(PurchaseNeed purchaseNeed);

	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int delete(int id);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int update(PurchaseNeed purchaseNeed);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	PurchaseNeed load(int id);

	/**
	 * 查询 分页查询
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	List<PurchaseNeed> pageList(int offset, int pagesize);

	/**
	 * 查询 分页查询 count
	 * 
	 * @author chenjun
	 * @date 2022/02/25
	 **/
	int pageListCount(int offset, int pagesize);

	List<PurchaseNeed> selectList(Map<String, Object> map);

	int selectListCount(Map<String, Object> map);

}